package com.hanbang.taitaigou.model;

/**
 * Created by fanxin on 2016/3/22.
 */
public class GoodsDetail {
    /**id**/
    private int id;
    /****/
    private String sort_id;
    //品牌
    private String subtitle;
    //箱数
    private String pknum;
    private String store_id;
    /**商品名字**/
    private String gname;
    /**商品照片地址**/
    private String img_url;
    /****/
    private double original_price;
    /**商品数量**/
    private int quantity;
    /****/
    private double sell_price;
    /**单位 “盒”**/
    private String unit;
    /****/
    private String spec_text;
    /****/
    private int status;
    /*选择的商品数量*/
    private int number;

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSort_id() {
        return sort_id;
    }

    public void setSort_id(String sort_id) {
        this.sort_id = sort_id;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }
    public String getPknum() {
        return pknum;
    }

    public void setPknum(String pknum) {
        this.pknum = pknum;
    }

    public String getStore_id() {
        return store_id;
    }

    public void setStore_id(String store_id) {
        this.store_id = store_id;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public String getImg_url() {
        return img_url;
    }

    public void setImg_url(String img_url) {
        this.img_url = img_url;
    }



    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public double getOriginal_price() {
        return original_price;
    }

    public void setOriginal_price(double original_price) {
        this.original_price = original_price;
    }

    public double getSell_price() {
        return sell_price;
    }

    public void setSell_price(double sell_price) {
        this.sell_price = sell_price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getSpec_text() {
        return spec_text;
    }

    public void setSpec_text(String spec_text) {
        this.spec_text = spec_text;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    public DbGwcData getDbGwcData() {
        return new DbGwcData(id, original_price, sell_price, number, gname, img_url,quantity);
    }

    @Override
    public String toString() {
        return "GoodsDetail{" +
                "id=" + id +
                ", sort_id='" + sort_id + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", pknum='" + pknum + '\'' +
                ", store_id='" + store_id + '\'' +
                ", gname='" + gname + '\'' +
                ", img_url='" + img_url + '\'' +
                ", original_price=" + original_price +
                ", quantity=" + quantity +
                ", sell_price=" + sell_price +
                ", unit='" + unit + '\'' +
                ", spec_text='" + spec_text + '\'' +
                ", status=" + status +
                ", number=" + number +
                '}';
    }
}
